package com.confinderence.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Conference implements Serializable {

	@Override
	public String toString() {
		return "Conference [id=" + id + ", name=" + name + ", location=" + location
				+ ", startTime=" + startTime + ", endTime=" + endTime + ", employee=" + employee
				+ ", lectures=" + lectures + ", lecturers=" + lecturers + "]";
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = -4715131273327075836L;
	private int id;
	private String name;
	private String location;
	private Date startTime;
	private Date endTime;
	private Employee employee;
	private List<Lecture> lectures;
	private List<Lecturer> lecturers;

	public Conference() {
	}

	public Conference(String name, String location, Date startTime, Date endTime,
			Employee employee, List<Lecture> lectures) {
		super();
		this.name = name;
		this.location = location;
		this.startTime = startTime;
		this.endTime = endTime;
		this.employee = employee;
		this.lectures = lectures;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public List<Lecturer> getLecturers() {
		return lecturers;
	}

	public void setLecturers(List<Lecturer> lecturers) {
		this.lecturers = lecturers;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public List<Lecture> getLectures() {
		return lectures;
	}

	public void setLectures(List<Lecture> lectures) {
		this.lectures = lectures;
	}

	public void addLecture(Lecture lecture) {
		if (lecture != null) {
			getLectures().add(lecture);
		}
	}

}